﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace MyProject {

	[Table(Name = "user_info", DisableSyncStructure = true)]
	public partial class UserInfo {

		[Column(Name = "user_id", IsPrimary = true)]
		public int UserId { get; set; }

		/// <summary>
		/// 用户账号
		/// </summary>
		[Column(Name = "account")]
		public string? Account { get; set; }

		/// <summary>
		/// 用户级别1管理员2普通用户
		/// </summary>
		[Column(Name = "app_manager_level")]
		public int? AppManagerLevel { get; set; }

		/// <summary>
		/// 代币余额
		/// </summary>
		[Column(Name = "balance")]
		public int? Balance { get; set; }

		[Column(Name = "create_time", DbType = "datetime",ServerTime = DateTimeKind.Local, CanUpdate = false)]
		public DateTime? CreateTime { get; set; }

		[Column(Name = "email")]
		public string? Email { get; set; }

		[Column(Name = "ex")]
		public string? Ex { get; set; }

		[Column(Name = "face_url")]
		public string? FaceUrl { get; set; }

		[Column(Name = "faceurl")]
		public string? Faceurl { get; set; }

		[Column(Name = "gender")]
		public sbyte? Gender { get; set; }

		[Column(Name = "glb_url")]
		public string? GlbUrl { get; set; }

		[Column(Name = "glburl")]
		public string? Glburl { get; set; }

		[Column(Name = "growth")]
		public int? Growth { get; set; }

		/// <summary>
		/// 身份证号
		/// </summary>
		[Column(Name = "identity")]
		public string? Identity { get; set; }

		/// <summary>
		/// 是否认证
		/// </summary>
		[Column(Name = "is_auth", DbType = "tinyint(4)")]
		public sbyte? IsAuth { get; set; }

		[Column(Name = "local_avatar")]
		public string? LocalAvatar { get; set; }

		[Column(Name = "localavatar")]
		public string? Localavatar { get; set; }

		/// <summary>
		/// 登录次数
		/// </summary>
		[Column(Name = "login_count")]
		public int? LoginCount { get; set; }

		/// <summary>
		/// 会员等级
		/// </summary>
		[Column(Name = "member_level_id")]
		public int? MemberLevelId { get; set; }

		[Column(Name = "model_id")]
		public int? ModelId { get; set; }

		[Column(Name = "modelid")]
		public int? Modelid { get; set; }

		/// <summary>
		/// 影币
		/// </summary>
		[Column(Name = "movie_coin")]
		public int? MovieCoin { get; set; }

		[Column(Name = "nick_name")]
		public string? NickName { get; set; }

		[Column(Name = "nickname")]
		public string? Nickname { get; set; }

		/// <summary>
		/// 登录密码
		/// </summary>
		[Column(Name = "password")]
		public string? Password { get; set; }

		/// <summary>
		/// 用户手机号
		/// </summary>
		[Column(Name = "phone")]
		public string? Phone { get; set; }

		/// <summary>
		/// 上一次登录平台1安卓,2苹果，3ipad,4web
		/// </summary>
		[Column(Name = "platform")]
		public int? Platform { get; set; }

		[Column(Name = "self_id")]
		public string? SelfId { get; set; }

		[Column(Name = "selfid")]
		public string? Selfid { get; set; }

		[Column(Name = "update_time", DbType = "datetime", ServerTime = DateTimeKind.Local)]
		public DateTime? UpdateTime { get; set; }

		[Column(Name = "userid")]
		public int Userid { get; set; } = 0;

	}

}
